package j83;

import java.util.ArrayList;
import java.util.List;

/**
 * @author chengshuai
 * @date 2021/4/19 10:16
 * -Xms100m -Xmx100m
 * OOM之GC overhead limit exceeded
 */
public class Client83 {

    public static void main(String[] args) {
        int i = 0;
        List<String> list = new ArrayList<>();

        try {
            while (true) {
                list.add(String.valueOf(++i));
            }
        } catch (Exception e) {
            System.out.println("********i:" + i);
            e.printStackTrace();
            throw e;
        } finally {

        }
    }
}
